<h1>出版社列表</h1>
<%=render :partial => 'shared/notice'%>
<%= link_to '添加出版社', :action => 'new' %>
<table class="listing">
  <tr>  
  <thead>
    <th >名称</th>
    <th width="8%">编辑</th>
    <th width="8%">删除</th>
  </thead>
  </tr>
<% @publishes.each_with_index do |publish,i| %>
  <tr class="line<%=i%2%>">
    
  <% for column in Publish.content_columns %>
    <td><%=h publish.send(column.name) %></td>
  <% end %>
    <td ><%= link_to image_tag("edit.gif",:size => "16x16"), :action => 'edit', :id => publish %></td>
    <td ><%= link_to image_tag("delete.gif",:size => "16x16"), { :action => 'destroy', :id => publish }, :confirm => '确认删除?', :post => true %></td>
  </tr>
<% end %>
</table>


<%=render :partial => 'shared/paginate' , :object => @publishes_pages%>
<br />


